package structs

//
//type Model struct {
//	ID        int        `gorm:"primary_key" json:"ID,omitempty"`
//	CreatedAt JsonTime   `gorm:"column:created_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"created_at,omitempty"`
//	CreatedBy int        `json:"created_by,omitempty"`
//	UpdatedAt JsonTime   `gorm:"column:updated_at;type:timestamp;not null;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" json:"updated_at,omitempty"`
//	UpdatedBy int        `json:"updated_by,omitempty"`
//	DeletedAt *time.Time `json:"deleted_at,omitempty"`
//}
//
//type JsonTime time.Time
//
//func (this JsonTime) MarshalJSON() ([]byte, error) {
//	var stamp = fmt.Sprintf("\"%s\"", time.Time(this).Format("2006-01-02"))
//	return []byte(stamp), nil
//}
